function answer=cols(vec)
    [rows answer] = size(vec);
end